package com.itheima_31;

import java.util.Arrays;

public class IntegerTest {
    public static void main(String[] args) {
        String s = "91 27 46 38 50";

        String[] sArr = s.split(" ");
        int size = sArr.length;
        int[] iArr = new int[size];

        for (int i = 0; i < size; i++) {
            iArr[i] = Integer.parseInt(sArr[i]);
        }

        Arrays.sort(iArr);
        System.out.println(Arrays.toString(iArr));
    }
}
